package com.halflife.comeElectricity.basic.goodsType;

import com.halflife.comeElectricity.basic.goodsType.GoodsType;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.List;

@Repository
public interface GoodsTypeRepository {
    int deleteByPrimaryKey(Integer id);

    int insert(GoodsType record);

    int insertSelective(GoodsType record);

    GoodsType selectByPrimaryKey(Integer id);
    List<GoodsType> selectAll();

    int updateByPrimaryKeySelective(GoodsType record);

    int updateByPrimaryKey(GoodsType record);

    /**
     * 查询所有商户
     * @param record
     * @return
     */
    List<GoodsType> selectGoodsTypeByPage(HashMap<String, Object> param);

    /**
     *  查询商户数量
     * @param record
     * @return
     */
    int selectGoodsTypeCountOrderByPage(HashMap<String, Object> param);
}